<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<link rel="stylesheet" type="text/css" href="<%=path%>/js/themes/bootstrap/easyui.css">
	<link rel="stylesheet" type="text/css" href="<%=path%>/js/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="<%=path%>/demo/demo.css">
	<script type="text/javascript" src="<%=path%>/js/jquery.min.js"></script>
	<script type="text/javascript" src="<%=path%>/js/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="<%=path%>/js/locale/easyui-lang-zh_CN.js"></script>
	<script type="text/javascript">			
	$('#tt').tree({

	    loadFilter: function(data){
			if (data.d){
				return data.d;
			} else {
				return data;
			}
	    }
	});
			
		
	/**
	 * 创建新选项卡
	 * @param tabId    选项卡id
	 * @param title    选项卡标题
	 * @param url      选项卡远程调用路径
	 */
	function addTab(tabId,title,url){
	
		//如果当前id的tab不存在则创建一个tab
		if($("#"+tabId).html()==null){
			var name = 'iframe_'+tabId;
			$('#centerTab').tabs('add',{
				title: title,         
				closable:true,
				cache : false,
				//注：使用iframe即可防止同一个页面出现js和css冲突的问题
				content : '<iframe name="'+name+'"id="'+tabId+'"src="'+url+'" width="100%" height="100%" frameborder="0" scrolling="auto" ></iframe>'
			});
		}
	}
	
	</script>
	<script type="text/javascript">
		function tuichu(){
			var r=confirm("确定退出吗?"); 
			if(r==true){
				$.ajax({
					type:"GET",
			    	async: false,
			   	 	url:"<%=path%>/login/close",
			   		data :null,
			   		dataType: "json",
			    	success:function(data){
			        	
			    			window.location.href="<%=path%>/views/home2.jsp";
			    		
			    	}
				});
			}
		}

	</script>
	<style>
		#oldpwd{
	border: 1px solid #ddd;
	width: 120px;
  	margin: 5px 0px;
	line-height:20px;
	height: 20px;
	padding: 0 5px;
	

	}
		#newpwd{
	border: 1px solid #ddd;
	width: 120px;
	line-height:20px;
	height: 20px;
	padding: 0 5px;
	
	}
		#confirmpwd{
  border: 1px solid #ddd;
  width: 120px;
  line-height: 20px;
  height: 20px;
  padding: 0 5px;
  margin: 5px 0px;

	}
#d3{
	  margin-top: 35px;
  	  margin-left: 25px;
}

#s2{
	 padding-left: 80px;
}
#d2{
		 margin-left: 1000px;
  		 margin-top: 6px;
}

#d4{
		 margin-left: 1700px;
  		  margin-top: 50px;
}
#div1{
	background:url("<%=path%>/images/60.jpg")
}
#div2{
	background:url("<%=path%>/images/60.jpg")
}

</style>
<title>Insert title here</title>
</head>

	
<body class="easyui-layout">
	<!-- 正上方panel -->
    <div id="div1" region="north" style="height:100px;">
   		
		<input type="hidden" value="<%= request.getParameter("cropInfo")%>"/>
		<input type="hidden" value="<%= request.getParameter("date")%>"/>
		<div id="d4">                   
   			<span id="s1"><a id="btn" href="#" class="easyui-linkbutton" data-options="iconCls:''">账套名称</a></span> 
   			<span id="s1"><a id="btn" href="#" class="easyui-linkbutton" data-options="iconCls:''" onclick="tuichu()">退出</a></span> 
   		</div>    
   	</div>
    <!-- 正左边panel -->
    <div id="div3" region="west" title="" split="true" style="width:200px;padding1:1px;overflow:hidden;">
				 <div id="d3">		    
				   <ul id="tt" class="easyui-tree">
				    <li>
						<span>基础配置</span>
						<ul>
							<li>
								<a href="javascript:addTab('tabId_pay','结算方式','<%=path%>/views/payMethod2.jsp');">结算方式</a>
							</li>	
							<li>
								<a href="javascript:addTab('tabId_sub','项目','<%=path%>/views/subinfo.jsp');">项目</a>
							</li>	
							<li>
								<a href="javascript:addTab('tabId_timepay','应收应付','<%=path%>/views/yingshouyingfu4.jsp');">应收应付</a>
							</li>	
						</ul>
					</li>
					<li>
						<span>业务工作</span>
						<ul>
							<li>
								<a href="javascript:addTab('tabId_bill','收款单','<%=path%>/views/account.jsp');">收款单</a>
							</li>
							<li>
								<a href="javascript:addTab('tabId_billlist','收款单列表','<%=path%>/views/subList4.jsp');">收款单列表</a>
							</li>
						</ul>
					</li>
					<li>
						<span>账务处理</span>
						<ul>
							<li>
								<a href="javascript:addTab('tabId_spe','生成凭证','<%=path%>/views/createBill4.jsp');">生成凭证</a>
							</li>	
						</ul>
					</li>
					<li>
						<span>分账查询</span>
						<ul>
							<li>
								<a href="javascript:addTab('tabId_change','更改密码','<%=path%>/views/UpdatePwd.jsp?pwd=<%=session.getAttribute("pwd")%>');">更改密码</a>
							</li>
							<li>
								<a href="javascript:addTab('tabId_cnt','公司台账','<%=path%>/views/companybill9.jsp');">公司台账</a>
							</li>	
						</ul>
					</li>
					</ul>
					</div>
</div>
    <!-- 正中间panel -->
    <div region="center" title="" >
    	<div class="easyui-tabs" id="centerTab" fit="true" border="false">
		
		</div>
    </div>
    <!-- 正下方panel -->
    <div id="div2" region="south" style="height:50px;" align="center">
    	<div id="d2">
    	<span>操作员:<input type="text" value="<%=session.getAttribute("name")%>"/></span> 
   		<span id="s2">日期:<input type="text" value="<%=session.getAttribute("logindate")%>"/></span> 
   		</div>
    </div>
    
   				
</body>

</html>